


<%@ page import="com.Fornecedor"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'fornecedor.label', default: 'Fornecedor')}" />
<title><g:message code="default.create.label"
		args="[entityName]" /></title>
</head>
<body>
	<div class="nav">
		<span class="menuButton"><a class="home"
			href="${createLink(uri: '/')}"><g:message
					code="default.home.label" /> </a> </span> <span class="menuButton"><g:link
				class="list" action="list">
				<g:message code="default.list.label" args="[entityName]" />
			</g:link> </span>
	</div>
	<h1 id="pageName">Cria Fornecedor</h1>

	<g:if test="${flash.message}">
		<div class="message">
			${flash.message}
		</div>
	</g:if>
	<g:hasErrors bean="${fornecedorInstance}">
		<div class="errors">
			<g:renderErrors bean="${fornecedorInstance}" as="list" />
		</div>
	</g:hasErrors>
	<g:form action="save">
          <fieldset class="tableField">
	  <legend>Fornecedor:</legend>
		<table class="IadTableForm">
			<tbody>

				<tr class="prop">
					
					<td valign="top" class="name"><label for="nome"><g:message
								code="fornecedor.nome.label" default="Nome" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'nome', 'errors')}">
						<g:textField name="nome" value="${fornecedorInstance?.nome}" /></td>
                                        
                                        <td valign="top" class="name"><label for="cpf"><g:message
								code="fornecedor.cpf.label" default="Cpf / CNPJ" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'cpf', 'errors')}">
						<g:textField name="cpf" maxlength="11"
							value="${fornecedorInstance?.cpf}" /></td>
                                                
				</tr>

				<tr class="prop">
					<td valign="top" class="name"><label for="rua"><g:message
								code="fornecedor.rua.label" default="Rua" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'rua', 'errors')}">
						<g:textField name="rua" value="${fornecedorInstance?.rua}" /></td>
                                                
                                        <td valign="top" class="name"><label for="numero"><g:message
								code="fornecedor.numero.label" default="Numero" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'numero', 'errors')}">
						<g:textField name="numero" value="${fornecedorInstance?.numero}" />
					</td>        
				
					<td valign="top" class="name"><label for="bairro"><g:message
								code="fornecedor.bairro.label" default="Bairro" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'bairro', 'errors')}">
						<g:textField name="bairro" value="${fornecedorInstance?.bairro}" />
					</td>

					<td valign="top" class="name"><label for="complemento"><g:message
								code="fornecedor.complemento.label" default="Complemento" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'complemento', 'errors')}">
						<g:textField name="complemento"
							value="${fornecedorInstance?.complemento}" /></td>
				</tr>

				<tr class="prop">
					<td valign="top" class="name"><label for="cep"><g:message
								code="fornecedor.cep.label" default="Cep" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'cep', 'errors')}">
						<g:textField name="cep" maxlength="8"
							value="${fornecedorInstance?.cep}" /></td>
				
					<td valign="top" class="name"><label for="telefone"><g:message
								code="fornecedor.telefone.label" default="Telefone" />
					</label></td>
					<td valign="top"
						class="value ${hasErrors(bean: fornecedorInstance, field: 'telefone', 'errors')}">
						<g:textField name="telefone" maxlength="10"
							value="${fornecedorInstance?.telefone}" /></td>
				</tr>
			</tbody>
		</table>
          </fieldset>
		<div class="buttons">
			<span class="button"><g:submitButton name="create"
					class="save"
					value="${message(code: 'default.button.create.label', default: 'Create')}" />
			</span>
		</div>
	</g:form>
</body>
</html>
